package com.jims.master.modules.api.csm.web;


import com.jims.master.common.web.BaseController;
import com.jims.master.common.web.impl.BaseDto;
import com.jims.master.modules.csm.service.ExpExportService;
import com.jims.master.modules.csm.service.ExpImportMasterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by zhao on 2017/07/08.
 * 病人基本信息
 * @author 朱齐
 */
@RestController
@RequestMapping(value = "his/csm/expInOut")
public class ExpInOutController extends BaseController {

    @Autowired
    private ExpImportMasterService expImportMasterService;
    @Autowired
    private ExpExportService expExportService;
    /**
     * 消耗品入库数据统计
     * @param orgId,month,flag
     * @return
     * @author ZhuQ
     */
    @RequestMapping(value = "expImportCount")
    public  List<BaseDto> expImportCount(@RequestParam String orgId,@RequestParam String month,@RequestParam String flag){
        BaseDto dto=new BaseDto();
//        String importDate = (String)map.get("importDate");
//        String orgId = (String)map.get("orgId");
        List<BaseDto> list= expImportMasterService.expImportCount(month,orgId);
        return list;
    }

    /**
     * 消耗品出库数据统计
     * @param orgId,month,flag
     * @return
     * @author ZhuQ
     */
    @RequestMapping(value = "expExportCount")
    public  List<BaseDto> expExportCount(@RequestParam String orgId,@RequestParam String month,@RequestParam String flag){
        BaseDto dto=new BaseDto();
//        String exportDate = (String)map.get("exportDate");
//        String orgId = (String)map.get("orgId");
        List<BaseDto> list= expExportService.expExportCount(month,orgId);
        return list;
    }

}
